#include "Book.h"

Book::Book(const std::string& title, const std::string& author, double price, const std::string& publisher, int id)
    : title(title), author(author),price(price),publisher(publisher), id(id), borrowed(false) {}

Book::Book()
{
}

std::string Book::getTitle() const {
    return title;
}

std::string Book::getAuthor() const {
    return author;
}

std::string Book::getPublisher() const
{
    return publisher;
}

double Book::getPrice() const
{
    return price;
}

int Book::getId() const {
    return id;
}

bool Book::isBorrowed() const {
    return borrowed;
}

void Book::borrow() {
    borrowed = true;
}

void Book::returnBook() {
    borrowed = false;
}